import { OmitType, PartialType } from "@nestjs/mapped-types";
import CreateDto from "./create.dto";
import { IsNumber, IsOptional, IsString, MaxLength, Min } from "class-validator";

export default class UpdateDto extends OmitType(CreateDto, ['toAli', 'count'] as const) {
    @Min(1)
    @IsNumber()
    id:number

    @MaxLength(35)
    @IsString()
    @IsOptional()
    aliSecret:string
}